// 启动生产环境的开发服务器
const chalk = require('chalk')
const shell = require('shelljs')
const port = process.env.port || 9001
process.env.NODE_ENV = 'production'
const { host } = require('./index')
const { code } = shell.exec(`http-server ./dist -p ${port} -a localhost -o /${process.env.npm_package_name} -P ${host}`)
if (code) {
	chalk.red('服务启动失败！')
}
//
